package com.example.rbac.common.config;

import com.example.rbac.common.handler.GlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author XieLongzhen
 * @date 2018/12/15 20:25
 */
@Configuration
public class CommonConfig {
    @Bean
    public GlobalExceptionHandler globalExceptionHandler() {
        return new GlobalExceptionHandler();
    }
}
